<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/auth/templates/template.xhtml">
	<ui:define name="pageTitle">#{usuarioVSBean.usuario.nick}</ui:define>
	<ui:define name="body">
		<f:view>

			<p:growl id="messages" showDetail="true" autoUpdate="true"
				closable="true" />

			<h:form id="form">
				<h:panelGrid cellspacing="10px" styleClass="center">
					<f:facet name="header">#{usuarioVSBean.usuario.nick}</f:facet>

					<h:outputText value="Dados do Usuário" styleClass="header3" />

					<h:panelGrid cellspacing="10px" columns="2">
						<h:outputText value="Nome" />
						<h:outputText value="#{usuarioVSBean.usuario.nome}" />
						<h:outputText value="Apelido" />
						<h:outputText value="#{usuarioVSBean.usuario.nick}" />
					</h:panelGrid>

					<p:orderList value="#{usuarioVSBean.usuario.permissoes}"
						var="permissao" controlsLocation="none" itemLabel="#{permissao}"
						itemValue="#{permissao}">
						<f:facet name="caption">Permissões</f:facet>
					</p:orderList>


				</h:panelGrid>
			</h:form>
		</f:view>
	</ui:define>
</ui:composition>

</html>